import 'package:flutter/material.dart';
import 'pages/login_page.dart';
import 'pages/file_upload_page.dart';
import 'pages/backup_page.dart';
import 'pages/photo_backup_page.dart';
import 'pages/transfer_list_page.dart';

class Routes {
  static const String login = '/';
  static const String fileUpload = '/file-upload';
  static const String backup = '/backup';
  static const String photoBackup = '/photo-backup';
  static const String transferList = '/transfer-list';

  static Route<dynamic> generateRoute(RouteSettings settings) {
    switch (settings.name) {
      case login:
        return MaterialPageRoute(builder: (_) => LoginPage());
      case fileUpload:
        return MaterialPageRoute(builder: (_) => FileUploadPage());
      case backup:
        return MaterialPageRoute(builder: (_) => const BackupPage());
      case photoBackup:
        return MaterialPageRoute(builder: (_) => const PhotoBackupPage());
      case transferList:
        return MaterialPageRoute(builder: (_) => const TransferListPage());
      default:
        return MaterialPageRoute(builder: (_) => LoginPage());
    }
  }
}
